package com.zy.web.demo.duoxiancheng.demo19;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/19 15:42
 */
public class ThreadA19 extends Thread{

    private Producer producer;

    public ThreadA19(Producer producer){
        this.producer  = producer;
    }

    @Override
    public void run() {
        super.run();
        while (true){
            producer.setValue();
        }
    }
}
